<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<%
	String path = request.getContextPath();
%>
<title>化验检查-综合管理</title>
<link rel="stylesheet" type="text/css"
	href="<%=path%>/css/btn_class.css" />
<link rel="stylesheet" type="text/css"
	href="<%=path%>/extjs/resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css"
	href="<%=path%>/extjs/style.css" />
<link rel="stylesheet" type="text/css"
	href="<%=path%>/extjs/ext-patch.css" />

<script type="text/javascript"
	src="<%=path%>/extjs/adapter/ext/ext-base.js"></script>
	<script type="text/javascript" src="<%=path%>/extjs/ext-all.js"></script>
	<script type="text/javascript" src="<%=path%>/js/datepicker/WdatePicker.js" defer="defer"></script>
	<script type="text/javascript"	src="<%=path%>/mould_published/public.js"></script>
	<script type="text/javascript" src="<%=path%>/extjs/RowExpander.js"></script>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

	</head>
	<body>
	<script type="text/javascript">
	Ext.BLANK_IMAGE_URL = "<%=path%>/ext-2.2/resources/images/default/s.gif";
	
				// 重载 Ext.data.Store.prototype.applySort 函数以修复 DataStore 对汉字排序异常的问题   
				// var _applySort = Ext.data.Store.prototype.applySort;   
				//如有需要，保存原 applySort 函数的引用     
				 Ext.data.Store.prototype.applySort=function(){        //重载 applySort     
				         if(this.sortInfo && !this.remoteSort){     
				                var s = this.sortInfo, f = s.field;     
				                var st = this.fields.get(f).sortType;   
				                var fn = function(r1, r2){     
			                        var v1 = st(r1.data[f]), v2 = st(r2.data[f]);     
			                        // 添加:修复汉字排序异常的Bug  
			                        if(typeof(v1) == "string"){ //若为字符串，  
			            				return v1.localeCompare(v2);//则用 localeCompare 比较汉字字符串, Firefox 与 IE 均支持   
			  						}  
				                	// 添加结束    
									return v1 > v2 ? 1 : (v1 < v2 ? -1 : 0);   
				            	};  
				                this.data.sort(s.direction, fn);     
				                if(this.snapshot && this.snapshot != this.data){     
				                    this.snapshot.sort(s.direction, fn);   
				   			    }
				   		 }
                  };  
	
	
	Ext.onReady(function() {
	
		var viewport = new Ext.Viewport({
					layout : 'border',
					items    : [ {
	                        xtype: "tabpanel",
	                        activeTab: 0,
	                        region: "center",
	                        items: [{
	                            xtype: "panel",
	                            title: "患者病情亲属通报",
	                            layout: 'fit'
	                        }, {
	                            xtype: "panel",
	                            title: "疾病防控教育",
	                            layout: 'fit'
	                        }, {
	                            xtype: "panel",
	                            title: "儿童免疫接种",
	                            layout: 'fit'
	                        }, {
	                            xtype: "panel",
	                            title: "妇女孕产期保健",
	                            layout: 'fit'
	                        }, {
	                            xtype: "panel",
	                            title: "家庭心理精神关怀",
	                            layout: 'fit'
	                        }]
	                    }
	                   ]
				});
				
			});
</script>
</body>

</html>